<script lang="ts" setup>
import { reactive } from 'vue';
import { Card, Col, Row } from 'ant-design-vue';
import { IconifyIcon } from '@vben/icons';

const stats = reactive({
  venues: 45,
  equipment: 234,
  vehicles: 12,
  tools: 156,
});
</script>

<template>
  <div class="physical-resource-manager">
    <div class="resource-overview">
      <Row :gutter="16">
        <Col :span="6">
          <Card title="场地资源" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.venues }}</div>
              <div class="stat-label">场地数量</div>
            </div>
          </Card>
        </Col>
        <Col :span="6">
          <Card title="设备资源" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.equipment }}</div>
              <div class="stat-label">设备数量</div>
            </div>
          </Card>
        </Col>
        <Col :span="6">
          <Card title="车辆资源" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.vehicles }}</div>
              <div class="stat-label">车辆数量</div>
            </div>
          </Card>
        </Col>
        <Col :span="6">
          <Card title="工具资源" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.tools }}</div>
              <div class="stat-label">工具数量</div>
            </div>
          </Card>
        </Col>
      </Row>
    </div>

    <div class="resource-list">
      <Card title="物理资源列表" :bordered="false">
        <div class="placeholder-content">
          <IconifyIcon icon="mdi:cube-outline" size="48" />
          <p>物理资源管理功能开发中...</p>
        </div>
      </Card>
    </div>
  </div>
</template>

<style scoped>
.physical-resource-manager {
  padding: 20px;
}

.resource-overview {
  margin-bottom: 24px;
}

.stat-item {
  padding: 20px 0;
  text-align: center;
}

.stat-number {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: bold;
  color: #1890ff;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.resource-list {
  margin-bottom: 24px;
}

.placeholder-content {
  padding: 60px 20px;
  color: #999;
  text-align: center;
}

.placeholder-content p {
  margin-top: 16px;
  font-size: 16px;
}
</style>
